//
//  FeedCell.h
//  xxShare
//
//  Created by 柳麟喆 on 2018/3/28.
//  Copyright © 2018年 lzLiu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FeedModel.h"

@class FeedCell;
@protocol FeedCellDelegate;

@protocol FeedCellDelegate <NSObject>
@optional
///关注按钮被点击
- (void)followBtnClicked:(FeedCell *)feedCell button:(UIButton *)followBtn;

///价值视图被点击
- (void)moneyBtnClicked:(FeedCell *)feedCell view:(UIView *)view;

///点赞视图被点击
- (void)thumbBtnClicked:(FeedCell *)feedCell view:(UIView *)view;

///评论视图被点击
- (void)commentBtnClicked:(FeedCell *)feedCell view:(UIView *)view;

///收藏按钮被点击
- (void)collectionBtnClicked:(FeedCell *)feedCell button:(UIButton *)collcetionBtn;

///头像被点击
- (void)avatorClicked:(NSString *)accountID;

///发表的照片被点击
- (void)photosClicked:(NSArray *)photos;

///长按举报
- (void)report;

@end

@interface FeedCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UIImageView *avator;

@property (weak, nonatomic) IBOutlet UILabel *nameAndDevote;

@property (weak, nonatomic) IBOutlet UILabel *time;

- (IBAction)follow:(UIButton *)sender;

@property (weak, nonatomic) IBOutlet UIImageView *photos;

@property (weak, nonatomic) IBOutlet UILabel *introduce;

@property (weak, nonatomic) IBOutlet UILabel *tags;

@property (weak, nonatomic) IBOutlet UILabel *location;

- (IBAction)collection:(UIButton *)sender;

@property (weak, nonatomic) IBOutlet UILabel *commentNum;

@property (weak, nonatomic) IBOutlet UILabel *thumbNum;

@property (weak, nonatomic) IBOutlet UILabel *money;

@property (weak, nonatomic) IBOutlet UIView *postView;

@property (weak, nonatomic) IBOutlet UIView *lineView;

@property (weak, nonatomic) IBOutlet UIView *titleView;

@property (weak, nonatomic) IBOutlet UIView *toolView;

@property (weak, nonatomic) IBOutlet UIView *commentView;

@property (weak, nonatomic) IBOutlet UIView *thumbView;

@property (weak, nonatomic) IBOutlet UIView *moneyView;

@property (weak, nonatomic) IBOutlet UILabel *PhotoCounts;

@property(nonatomic, weak)id<FeedCellDelegate> delegate;

///模型
@property(nonatomic, strong)FeedModel *model;

@end
